package com.demo.mapper;

import com.demo.dao.Course;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface CourseMapper {

    List<Course> findAllCourse();

    String findNameById(int cid);

    List<String> findAllCourseByTerm(String term);

    List<Course> findCourseByTerm(String term);

    Integer getCidByName(String cname);

    Course findCourseByCid(int cid);

}
